<script type="text/javascript">

    const button = document.getElementById('myButton');
    function myFunction(button) {
        
        function(){
            var x, y, z;  // 语句 1
            x = 22;        // 语句 2
            y = 11;        // 语句 3
            z = x + y;    // 语句 4
            document.getElementById("button").innerHTML = "z 的值是" + z + "。";  
        }
        
        
    }


</script>